<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="f"%>
<%@ page session="false" contentType="text/html; charset=UTF-8"%>
<html>
<head>
	<title>Home</title>
</head>
<body>
<h1>
	Hello world!  
</h1>

<P>  The time on the server is ${serverTime}. </P>
<table>
		<c:forEach var="advertisement" items="${advertisements}" varStatus="status">
			<tr>
				<td>${status.index+1}</td>
				<td><b>${advertisement.title}</b></td>
				<td><i>${advertisement.date}</i></td>
			</tr>
			<tr>
				<td></td>
				<td>${advertisement.text}</td>
			</tr>
			<tr>
				<td></td>
				<td>${advertisement.user.name};
			</tr>
		</c:forEach>
	</table>
<h1>Новая версия</h1>	
</body>
</html>
